import React,{useState,useRef,memo} from 'react'

//! input组件没有变化，所以想办法让其不再重复执行
export const Input = memo(({addItem}) => {
    console.log("input re-render")
    return (
        <div>
            <input onKeyUp={addItem} type='text'/>
        </div>
    )
})
